package com.dragon.modules.yuegou.entity.wallet;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商户到会员悦卡交易（会员自购的悦卡，商户向会员退款）实体类<br>
 * 对应的表为：walt_mer2mem_boughtcard_trade<br>
 * 
 * @author pbuilder generated
 * @date 2019-06-03 15:20:36
 * @company sgy
 * @version 2.0
 */
@TableName("walt_mer2mem_boughtcard_trade")
@ApiModel(description = "商户到会员悦卡交易（会员自购的悦卡，商户向会员退款）")
public class Mer2memBoughtcardTradeEntity {

    /** 会员悦卡交易记录ID */
	@ApiModelProperty("会员悦卡交易记录ID")
	protected String id;

    /** 交易号 */
	@ApiModelProperty("交易号")
	protected String tradeId;

    /** 会员ID（冗余） */
	@ApiModelProperty("会员ID（冗余）")
	protected String memberId;

    /** 会员钱包ID（冗余） */
	@ApiModelProperty("会员钱包ID（冗余）")
	protected String memberWalletId;

    /** 会员悦卡ID */
	@ApiModelProperty("会员悦卡ID")
	protected String memberCardId;

    /** 会员悦卡卡号 */
	@ApiModelProperty("会员悦卡卡号")
	protected String memberCardNo;

    /** 悦卡模板ID（冗余） */
	@ApiModelProperty("悦卡模板ID（冗余）")
	protected String cardTemplateId;

    /** 商户ID（冗余） */
	@ApiModelProperty("商户ID（冗余）")
	protected String merchantId;

    /** 商户钱包ID */
	@ApiModelProperty("商户钱包ID")
	protected String merchantWalletId;

    /** 订单号 */
	@ApiModelProperty("订单号")
	protected String orderNo;

    /** 退款单号 */
	@ApiModelProperty("退款单号")
	protected String refundNo;

    /** 交易金额 */
	@ApiModelProperty("交易金额")
	protected BigDecimal amount;

    /** 交易前悦卡余额 */
	@ApiModelProperty("交易前悦卡余额")
	protected BigDecimal cardAmountBefore;

    /** 交易后悦卡余额 */
	@ApiModelProperty("交易后悦卡余额")
	protected BigDecimal cardAmountAfter;

    /** 交易前商户悦卡余额 */
	@ApiModelProperty("交易前商户悦卡余额")
	protected BigDecimal merchantAmountBefore;

    /** 交易后商户悦卡余额 */
	@ApiModelProperty("交易后商户悦卡余额")
	protected BigDecimal merchantAmountAfter;

    /** 交易时间 */
	@ApiModelProperty("交易时间")
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空商户到会员悦卡交易（会员自购的悦卡，商户向会员退款）实体对象
	 */
	public Mer2memBoughtcardTradeEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个商户到会员悦卡交易（会员自购的悦卡，商户向会员退款）实体对象
	 * 
	 * @param other 其它对象
	 */
	public Mer2memBoughtcardTradeEntity(Mer2memBoughtcardTradeEntity other){
		super();
     	this.id = other.id;
     	this.tradeId = other.tradeId;
     	this.memberId = other.memberId;
     	this.memberWalletId = other.memberWalletId;
     	this.memberCardId = other.memberCardId;
     	this.memberCardNo = other.memberCardNo;
     	this.cardTemplateId = other.cardTemplateId;
     	this.merchantId = other.merchantId;
     	this.merchantWalletId = other.merchantWalletId;
     	this.orderNo = other.orderNo;
     	this.refundNo = other.refundNo;
     	this.amount = other.amount;
     	this.cardAmountBefore = other.cardAmountBefore;
     	this.cardAmountAfter = other.cardAmountAfter;
     	this.merchantAmountBefore = other.merchantAmountBefore;
     	this.merchantAmountAfter = other.merchantAmountAfter;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取会员悦卡交易记录ID
	 * 
	 * @return id 会员悦卡交易记录ID
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置会员悦卡交易记录ID
	 * 
	 * @param id 会员悦卡交易记录ID
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取交易号
	 * 
	 * @return tradeId 交易号
	 */
	public String getTradeId() {
		return tradeId;
	}
  	
	/**
	 * 设置交易号
	 * 
	 * @param tradeId 交易号
	 */
	public void setTradeId(String tradeId) {
		this.tradeId = tradeId;
	}

	/**
	 * 获取会员ID（冗余）
	 * 
	 * @return memberId 会员ID（冗余）
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员ID（冗余）
	 * 
	 * @param memberId 会员ID（冗余）
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取会员钱包ID（冗余）
	 * 
	 * @return memberWalletId 会员钱包ID（冗余）
	 */
	public String getMemberWalletId() {
		return memberWalletId;
	}
  	
	/**
	 * 设置会员钱包ID（冗余）
	 * 
	 * @param memberWalletId 会员钱包ID（冗余）
	 */
	public void setMemberWalletId(String memberWalletId) {
		this.memberWalletId = memberWalletId;
	}

	/**
	 * 获取会员悦卡ID
	 * 
	 * @return memberCardId 会员悦卡ID
	 */
	public String getMemberCardId() {
		return memberCardId;
	}
  	
	/**
	 * 设置会员悦卡ID
	 * 
	 * @param memberCardId 会员悦卡ID
	 */
	public void setMemberCardId(String memberCardId) {
		this.memberCardId = memberCardId;
	}

	/**
	 * 获取会员悦卡卡号
	 * 
	 * @return memberCardNo 会员悦卡卡号
	 */
	public String getMemberCardNo() {
		return memberCardNo;
	}
  	
	/**
	 * 设置会员悦卡卡号
	 * 
	 * @param memberCardNo 会员悦卡卡号
	 */
	public void setMemberCardNo(String memberCardNo) {
		this.memberCardNo = memberCardNo;
	}

	/**
	 * 获取悦卡模板ID（冗余）
	 * 
	 * @return cardTemplateId 悦卡模板ID（冗余）
	 */
	public String getCardTemplateId() {
		return cardTemplateId;
	}
  	
	/**
	 * 设置悦卡模板ID（冗余）
	 * 
	 * @param cardTemplateId 悦卡模板ID（冗余）
	 */
	public void setCardTemplateId(String cardTemplateId) {
		this.cardTemplateId = cardTemplateId;
	}

	/**
	 * 获取商户ID（冗余）
	 * 
	 * @return merchantId 商户ID（冗余）
	 */
	public String getMerchantId() {
		return merchantId;
	}
  	
	/**
	 * 设置商户ID（冗余）
	 * 
	 * @param merchantId 商户ID（冗余）
	 */
	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	/**
	 * 获取商户钱包ID
	 * 
	 * @return merchantWalletId 商户钱包ID
	 */
	public String getMerchantWalletId() {
		return merchantWalletId;
	}
  	
	/**
	 * 设置商户钱包ID
	 * 
	 * @param merchantWalletId 商户钱包ID
	 */
	public void setMerchantWalletId(String merchantWalletId) {
		this.merchantWalletId = merchantWalletId;
	}

	/**
	 * 获取订单号
	 * 
	 * @return orderNo 订单号
	 */
	public String getOrderNo() {
		return orderNo;
	}
  	
	/**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	/**
	 * 获取退款单号
	 * 
	 * @return refundNo 退款单号
	 */
	public String getRefundNo() {
		return refundNo;
	}
  	
	/**
	 * 设置退款单号
	 * 
	 * @param refundNo 退款单号
	 */
	public void setRefundNo(String refundNo) {
		this.refundNo = refundNo;
	}

	/**
	 * 获取交易金额
	 * 
	 * @return amount 交易金额
	 */
	public BigDecimal getAmount() {
		return amount;
	}
  	
	/**
	 * 设置交易金额
	 * 
	 * @param amount 交易金额
	 */
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	/**
	 * 获取交易前悦卡余额
	 * 
	 * @return cardAmountBefore 交易前悦卡余额
	 */
	public BigDecimal getCardAmountBefore() {
		return cardAmountBefore;
	}
  	
	/**
	 * 设置交易前悦卡余额
	 * 
	 * @param cardAmountBefore 交易前悦卡余额
	 */
	public void setCardAmountBefore(BigDecimal cardAmountBefore) {
		this.cardAmountBefore = cardAmountBefore;
	}

	/**
	 * 获取交易后悦卡余额
	 * 
	 * @return cardAmountAfter 交易后悦卡余额
	 */
	public BigDecimal getCardAmountAfter() {
		return cardAmountAfter;
	}
  	
	/**
	 * 设置交易后悦卡余额
	 * 
	 * @param cardAmountAfter 交易后悦卡余额
	 */
	public void setCardAmountAfter(BigDecimal cardAmountAfter) {
		this.cardAmountAfter = cardAmountAfter;
	}

	/**
	 * 获取交易前商户悦卡余额
	 * 
	 * @return merchantAmountBefore 交易前商户悦卡余额
	 */
	public BigDecimal getMerchantAmountBefore() {
		return merchantAmountBefore;
	}
  	
	/**
	 * 设置交易前商户悦卡余额
	 * 
	 * @param merchantAmountBefore 交易前商户悦卡余额
	 */
	public void setMerchantAmountBefore(BigDecimal merchantAmountBefore) {
		this.merchantAmountBefore = merchantAmountBefore;
	}

	/**
	 * 获取交易后商户悦卡余额
	 * 
	 * @return merchantAmountAfter 交易后商户悦卡余额
	 */
	public BigDecimal getMerchantAmountAfter() {
		return merchantAmountAfter;
	}
  	
	/**
	 * 设置交易后商户悦卡余额
	 * 
	 * @param merchantAmountAfter 交易后商户悦卡余额
	 */
	public void setMerchantAmountAfter(BigDecimal merchantAmountAfter) {
		this.merchantAmountAfter = merchantAmountAfter;
	}

	/**
	 * 获取交易时间
	 * 
	 * @return createdTime 交易时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置交易时间
	 * 
	 * @param createdTime 交易时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

    public String toString() {
		return new StringBuilder().append("Mer2memBoughtcardTradeEntity{").
			append("id=").append(id).
			append(",tradeId=").append(tradeId).
			append(",memberId=").append(memberId).
			append(",memberWalletId=").append(memberWalletId).
			append(",memberCardId=").append(memberCardId).
			append(",memberCardNo=").append(memberCardNo).
			append(",cardTemplateId=").append(cardTemplateId).
			append(",merchantId=").append(merchantId).
			append(",merchantWalletId=").append(merchantWalletId).
			append(",orderNo=").append(orderNo).
			append(",refundNo=").append(refundNo).
			append(",amount=").append(amount).
			append(",cardAmountBefore=").append(cardAmountBefore).
			append(",cardAmountAfter=").append(cardAmountAfter).
			append(",merchantAmountBefore=").append(merchantAmountBefore).
			append(",merchantAmountAfter=").append(merchantAmountAfter).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public Mer2memBoughtcardTradeEntity copy() {
		return new Mer2memBoughtcardTradeEntity(this);
	}

    /** 会员悦卡交易记录ID */
	public static final String COL_ID = "id";

    /** 交易号 */
	public static final String COL_TRADE_ID = "trade_id";

    /** 会员ID（冗余） */
	public static final String COL_MEMBER_ID = "member_id";

    /** 会员钱包ID（冗余） */
	public static final String COL_MEMBER_WALLET_ID = "member_wallet_id";

    /** 会员悦卡ID */
	public static final String COL_MEMBER_CARD_ID = "member_card_id";

    /** 会员悦卡卡号 */
	public static final String COL_MEMBER_CARD_NO = "member_card_no";

    /** 悦卡模板ID（冗余） */
	public static final String COL_CARD_TEMPLATE_ID = "card_template_id";

    /** 商户ID（冗余） */
	public static final String COL_MERCHANT_ID = "merchant_id";

    /** 商户钱包ID */
	public static final String COL_MERCHANT_WALLET_ID = "merchant_wallet_id";

    /** 订单号 */
	public static final String COL_ORDER_NO = "order_no";

    /** 退款单号 */
	public static final String COL_REFUND_NO = "refund_no";

    /** 交易金额 */
	public static final String COL_AMOUNT = "amount";

    /** 交易前悦卡余额 */
	public static final String COL_CARD_AMOUNT_BEFORE = "card_amount_before";

    /** 交易后悦卡余额 */
	public static final String COL_CARD_AMOUNT_AFTER = "card_amount_after";

    /** 交易前商户悦卡余额 */
	public static final String COL_MERCHANT_AMOUNT_BEFORE = "merchant_amount_before";

    /** 交易后商户悦卡余额 */
	public static final String COL_MERCHANT_AMOUNT_AFTER = "merchant_amount_after";

    /** 交易时间 */
	public static final String COL_CREATED_TIME = "created_time";
}
